<?php
	class GoodscommentModel extends Model {
		protected $tableName='goodscomment';
		public function fetchcomment($id){
			$sql='select * from '.$this->tableName.' where goodsid='.$id;
			$res=mysql_query($sql) or die(mysql_error());
			$data=array();
			while ($row=mysql_fetch_assoc($res)){
				$data[]=$row;
			}
			//dump($data);
			return $data;
		}
	}
?>